<template>
	<view class="content">
		<view :style="{height: systemBarHeight + 'px'}">
		</view>

		<view class="navbar">
			<text>我 的</text>
		</view>

		<view class="user">
			<view class="user_img">
				<image src="/static/logo.png" mode=""></image>
			</view>
			<view class="user_name">
				<text>昵称2025</text>
			</view>

		</view>


		<view class="type">
			<view class="type_item" @click="kschange()">
				<text class="type1">2</text>
				<text class="type2">我的课时</text>
			</view>
			<view class="type_item" @click="kmchange()">
				<text class="type1">2</text>
				<text class="type2">当前科目</text>
			</view>
		</view>

		<view class="list">
			<view class="list_item" @click="jlchange()">
				<view class="list_item_lf">
					<image src="/static/xy/yyjl.png" mode=""></image>
					<text>预约记录</text>
				</view>
				<view class="list_item_rg">
					<image src="/static/xy/ck2.png" mode=""></image>
				</view>
			</view>

			<view class="list_item1" @click="passwprdchange()">
				<view class="list_item1_lf">
					<image src="/static/xy/yyjl.png" mode=""></image>
					<text>修改密码</text>
				</view>
				<view class="list_item1_rg">
					<image src="/static/xy/ck2.png" mode=""></image>
				</view>
			</view>
		</view>

		<view class="exit">
			<text>退出登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemBarHeight: 0,
			}
		},
		mounted() {
			/* 手机顶部高度 */
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			kschange(){
				uni.navigateTo({
					url:'/pages/index/my_period'
				})
			},
			kmchange(){
				uni.navigateTo({
					url:'/pages/index/my_subject'
				})
			},
			jlchange(){
				uni.navigateTo({
					url:'/pages/index/record'
				})
			},
			passwprdchange(){
				uni.navigateTo({
					url:'/pages/index/updatepassword'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		width: 750rpx;
		height: 100vh;
		background: linear-gradient(180deg, #ECFFF8 0%, #F7F7F7 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.navbar {
		height: 88rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 600;
		font-size: 34rpx;
		color: #43484D;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.user {
		display: flex;
		align-items: center;
		width: 92%;
		margin: 52rpx auto 0;

		.user_img {
			>image {
				width: 112rpx;
				height: 112rpx;
				border-radius: 56rpx;
			}
		}

		.user_name {
			margin-left: 22rpx;
		}
	}

	.type {
		width: 92%;
		height: 158rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		display: flex;
		align-items: center;
		margin: 48rpx auto 0;

		.type_item {
			width: 50%;
			display: flex;
			flex-direction: column;

			.type1 {

				font-family: PingFang SC, PingFang SC;
				font-weight: 600;
				font-size: 40rpx;
				color: #53DDA8;
				margin: auto;
			}

			.type2 {

				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #8B8B8B;
				margin: 15rpx auto 0;
			}

		}
	}

	.list {
		width: 92%;
		margin: 48rpx auto 0;
		padding-bottom: 32rpx;
		background: #FFFFFF;
		border-radius: 0rpx 0rpx 0rpx 0rpx;

		padding-top: 32rpx;

		.list_item {
			margin-bottom: 32rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.list_item_lf {
				display: flex;
				align-items: center;
				margin-left: 32rpx;

				>image {
					width: 40rpx;
					height: 40rpx;
				}

				>text {

					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #43484D;
					margin-left: 8rpx;
				}
			}

			.list_item_rg {
				>image {
					width: 24rpx;
					height: 24rpx;
					margin-right: 32rpx;
				}
			}
		}

		.list_item1 {
			margin-top: 64rpx;
			display: flex;

			align-items: center;
			justify-content: space-between;

			.list_item1_lf {
				display: flex;
				align-items: center;
				margin-left: 32rpx;

				>image {
					width: 40rpx;
					height: 40rpx;
				}

				>text {

					font-family: PingFang SC, PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #43484D;
					margin-left: 8rpx;
				}
			}

			.list_item1_rg {
				>image {
					width: 24rpx;
					height: 24rpx;
					margin-right: 32rpx;
				}
			}
		}
	}

	.exit {
		margin-top: 426rpx;
		display: flex;
		justify-content: center;
		font-family: PingFang SC, PingFang SC;
		font-weight: 400;
		font-size: 32rpx;
		color: #696969;

	}
</style>